<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>党员卡检测</title>
<meta name="decorator" content="default" />

<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/static/css/bootstrap.css">
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/static/css/base.css">
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/static/css/common.css">
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/static/css/layout.css">
<script src="<%=request.getContextPath()%>/static/js/jquery-1.10.2.js"
	type="text/javascript" charset="utf-8"></script>
<script src="<%=request.getContextPath()%>/static/js/bootstrap.min.js"
	type="text/javascript" charset="utf-8"></script>
<script src="<%=request.getContextPath()%>/static/layer/layer.js"></script>

<style type="text/css">
.e-form input {
	padding: 5px 0 !important;
}
</style>
<script type="text/javascript">
	$(document).ready(function() {

		top.$("#_card_win").click();
		
		$('#_card_child').click(function (){
			
		    personid=$("#pid").val();	
		    
		    $.ajax({  
		        url: "${ctx}/partycard/partycard/getPersonById/"+personid,  
		        type: "get",  
		        dataType: "json",  
		        async: false,//同步  
		        success: function(text){  
		        	if(text.type == "sucess"){
		        		personid=text.partycard.personid;
		        		personName=text.partycard.personname;
							if(personName == ''){
								top.$("#_card_error1").click();
								check=false;					
							}else{
								top.sucess1(personName);
								check=false;															
							}
		        	}
		        }
		});
	 });
	});
</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a>党员卡检测</a></li>
	</ul>
	<form:form id="inputForm" modelAttribute="organizeLife" action=""
		method="post" class="form-horizontal">
		<div class="container">
			<input type="hidden" id="pid"></input>
			<input type="hidden" id="_card_child"/>
		</div>
	</form:form>
</body>
</html>